package main

import "fmt"

type Jumpler interface {
	jump()
}

type Salyer interface {
	say()
}

type animal interface {
	Jumper
	Sayer
}

type dlog struct {
	name string
}

func (d dlog) jump() {
	fmt.Printf("%s会跳\n", d.name)
}

func (d dlog) say() {
	fmt.Printf("%s会叫\n", d.name)
}

func main() {
	var x animal
	x = dlog{name: "小强"}

	x.jump()
	x.say()
}
